home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / PPCExamples / International Example / InlineInputSample / InlineInputSample.make < prev    next >
Encoding:
Text File  |  1998-12-03  |  3.0 KB  |  88 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        InlineInputSample.make
  3. #
  4. #    Contains:    make file for InlineInputSample variants
  5. #
  6. #    Copyright:    © 1989, 1993 Apple Computer, Inc. All rights reserved.
  7. #
  8.  
  9. #    Build Information
  10. #    -----------------
  11. #    InlineInputSample relies on the Universal C interfaces, which support
  12. #    compilation for both 68K and Power Mac, and has been successfully built
  13. #    with the Universal interfaces of 11/9/93. It also needs the TSMTE.h
  14. #    interface file which is included in this folder.
  15. #
  16. #    This makefile lets you build the application in three versions:
  17. #        - 68K, which runs native on 68K Macs and emulated on Power Macs
  18. #        - PPC, which runs native on Power Macs
  19. #        - Fat, which runs native on either platform
  20. #    You can execute
  21. #        Make -f InlineInputSample.make All
  22. #    to get the build commands for all three versions.
  23.         
  24.  
  25. Obj = :Objects:
  26.  
  27. SymOpt = off
  28. PPCCOpt = off
  29.  
  30. GenericObjs68K = ∂
  31.             {Obj}InlineInputSample.a.o ∂
  32.             "{Libraries}"MacRuntime.o ∂
  33.             "{Libraries}"Interface.o
  34.  
  35. GenericObjsPPC = ∂
  36.             "{SharedLibraries}"StdCLib ∂
  37.             "{SharedLibraries}"MathLib ∂
  38.             "{PPCLibraries}"StdCRuntime.o ∂
  39.             "{PPCLibraries}"PPCCRuntime.o ∂
  40.             "{SharedLibraries}"InterfaceLib
  41.  
  42.  
  43.  
  44. .68KCode ƒ .c.o
  45.     Link -o {targDir}{default}.68KCode {depDir}{default}.c.o {GenericObjs68K}
  46.  
  47. {Obj}InlineInputSample.68KCode ƒ {Obj}InlineInputSample.a.o
  48.  
  49. .PPCCode ƒ .o
  50.     PPCLink ∂
  51.         -o {targDir}{default}.PPCCode ∂
  52.         {depDir}{default}.o ∂
  53.         {GenericObjsPPC}
  54.  
  55. {Obj} ƒ {Obj}
  56.  
  57.  
  58. All ƒ    InlineInputSample.68K ∂
  59.         InlineInputSample.PPC ∂
  60.         InlineInputSample.Fat
  61.  
  62. InlineInputSample.68K ƒ {Obj}InlineInputSample.68KCode InlineInputSample.r InlineInputSample.h
  63.     Duplicate -r -y {Obj}InlineInputSample.68KCode {Targ}
  64.     Rez -d qAppleEvents=1 -d qInline=1 -d qPowerPC=0 -rd -append -o {Targ} InlineInputSample.r
  65.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  66.  
  67. InlineInputSample.PPC ƒ {Obj}InlineInputSample.PPCCode InlineInputSample.r InlineInputSample.h
  68.     Duplicate -d -y {Obj}InlineInputSample.PPCCode {Targ}
  69.     Rez -d qAppleEvents=1 -d qInline=1 -d qPowerPC=1 -rd -append -o {Targ} InlineInputSample.r
  70.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  71.  
  72. InlineInputSample.Fat ƒ {Obj}InlineInputSample.68KCode {Obj}InlineInputSample.PPCCode InlineInputSample.r InlineInputSample.h
  73.     Duplicate -d -y {Obj}InlineInputSample.PPCCode {Targ}
  74.     Duplicate -r -y {Obj}InlineInputSample.68KCode {Targ}
  75.     Rez -d qAppleEvents=1 -d qInline=1 -d qPowerPC=1 -rd -append -o {Targ} InlineInputSample.r
  76.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  77.  
  78.  
  79. {Obj}InlineInputSample.c.o ƒƒ InlineInputSample.c InlineInputSample.h
  80.     SC -d OLDROUTINELOCATIONS=0 -d qAppleEvents=1 -d qInline=1 -proto strict -w 17 InlineInputSample.c -o {targ}
  81.  
  82. #    turn off optimization for inline input version, optimization doesn't work correctly in all cases yet
  83.  
  84. {Obj}InlineInputSample.o ƒ InlineInputSample.c InlineInputSample.h
  85.     MrC -sym {SymOpt} -opt {PPCCOpt} -d OLDROUTINELOCATIONS=0 -d qAppleEvents=1 -d qInline=1 -w 17 InlineInputSample.c -o {targ}
  86.  
  87. {Obj}InlineInputSample.a.o ƒ InlineInputSample.a
  88.     Asm InlineInputSample.a -o {Obj}InlineInputSample.a.o